<?php $_product = $_product = Mage::registry('current_product'); ?>
<script type="text/javascript">Scarab.view('<?php echo $_product->getId(); ?>');</script>